﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace sccf
{
    public class Vars
    {
        public static string Fecha;
        public static string connectionString = "Data Source=localhost;Initial Catalog=SCCF;Integrated Security=True;MultipleActiveResultSets=True;";
        public static string Usuario;
        public static string TipoUsuario="";
        #region OpenLDAP
        #region User Attributes
        public static string SHELL_POR_DEFECTO = "/bin/bash";
        public static string GID_ESTUDIANTE = "102";
        public static string GID_PROFESOR = "101";
        public static string[] GROUPS = { "audio", "cdrom", "floppy", "plugdev", "power", "netdev", "users" }; // Grupos para permisos de las cuentas sobre las máquinas
        public static string[] OBJECTCLASSES = { "inetOrgPerson", "top", "posixAccount", "shadowAccount", "inetLocalMailRecipient" };
        public static string DOM = "ic-itcr.ac.cr";
        public static string DOMINIO = "@ic-itcr.ac.cr";
        #endregion
        #region Connection
        //public static string LDAP_SERVER = "mnemosine-pruebas.ic-itcr.ac.cr";
        public static string LDAP_SERVER = "172.19.127.19";
        //public static string LDAP_UIDDN  = "LDAP://mnemosine-pruebas.ic-itcr.ac.cr/uid=";
        //public static string LDAP_BASEDN = "LDAP://mnemosine-pruebas.ic-itcr.ac.cr/ou=people,dc=ic-itcr,dc=ac,dc=cr";
        public static string LDAP_UIDDN = "LDAP://172.19.127.19/uid=";
        public static string LDAP_BASEDN = "LDAP://172.19.127.19/ou=people,dc=ic-itcr,dc=ac,dc=cr";
        public static string LDAP_USER = "cn=admin,dc=ic-itcr,dc=ac,dc=cr";
        public static string LDAP_PASS = "Solaris2013";
        #endregion
        #endregion
        #region Active Directory
        public static string AD_BASEDN = "LDAP://172.19.127.19/ou=people,dc=ic-itcr,dc=ac,dc=cr";
        public static string AD_USER = "cn=admin,dc=ic-itcr,dc=ac,dc=cr";
        public static string AD_PASS = "Solaris2013";
        public static string AD_SCHEMA_USER = "users";
        #endregion
        #region Otros
        public static Random RANDOMNUMBERS = new Random();
        #endregion
    }
}